package com.example.mydemo.entity.domain;

import lombok.Data;

@Data
public class ExcelDTO {
    private String departmentId;    // 部门ID
    private String departmentName;
    private String employeeId;      // 员工ID
    private String employeeName;
    private String totalLateDays; // 总迟到天数
    private String totalEarlyDays; // 总早退天数
    private String insufficientDays; // 打卡不足天数
    private String normalDays;   // 正常打卡天数


    public ExcelDTO( EmployeeClockStatDTO employeeClockStatDTO) {
        this.departmentId = employeeClockStatDTO.getDepartmentId();
        this.departmentName = employeeClockStatDTO.getDepartmentName();
        this.employeeId = String.valueOf(employeeClockStatDTO.getEmployeeId());
        this.employeeName = employeeClockStatDTO.getEmployeeName();
        this.totalLateDays = String.valueOf(employeeClockStatDTO.getTotalLateDays());
        this.totalEarlyDays = String.valueOf(employeeClockStatDTO.getTotalEarlyDays());
        this.insufficientDays = String.valueOf(employeeClockStatDTO.getInsufficientDays());
        this.normalDays = String.valueOf(employeeClockStatDTO.getNormalDays());
    }
}
